const mongoose = require("mongoose");
main().catch(err => console.log(err));

async function main() {
    await mongoose.connect("mongodb://admin:L1Y1ru0%40%23123456@49.232.50.87/admin");
}

mongoose.connection.once("open", function () {
    console.info("连接到了49.232.50.87/admin")
})
mongoose.connection.once("close", function () {
    console.info("断开了连接")
})

// mongoose.disconnect().then(r => {
//     console.info("主动断开连接")
// });
